core: Add detached metadata, readd metadata to commits
authorColin Walters <walters@verbum.org>
Mon, 9 Sep 2013 21:01:32 +0000 (17:01 -0400)
committerColin Walters <walters@verbum.org>
Mon, 9 Sep 2013 21:01:32 +0000 (17:01 -0400)
commitac2d61dd515e547df6e1fc9e9d438783a201848d
treea6b6302ae4e2a2875d9361808be539bb61d1a7c3
parentb4b700c1635df1a0b02d809d0f17c153fbd826a1
core: Add detached metadata, readd metadata to commits

Previously I thought we'd have to ditch the current commit
format to avoid a{sv} due to

See https://bugzilla.gnome.org/show_bug.cgi?id=673012

But I realized that we don't really have to care about
unpacking/repacking commit objects, so let's just re-expose the
existing metadata a{sv} in commits in the API.

Also, add support for "detached" metadata that can be updated at any
time post-commit.  This is specifically designed for GPG signatures.

https://bugzilla.gnome.org/show_bug.cgi?id=707379
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo-prune.c
src/libostree/ostree-repo.h
src/ostree/ot-builtin-commit.c
src/ostree/ot-builtin-show.c
tests/test-basic.sh